org.eclipse.vtp.desktop.model.core.configuration
Class ComponentPropertiesDialog

java.lang.Object
  extended by org.eclipse.jface.window.Window
      extended by org.eclipse.vtp.desktop.core.dialogs.FramedDialog
          extended by org.eclipse.vtp.desktop.core.dialogs.MultiPageFramedDialog
              extended by org.eclipse.vtp.desktop.model.core.configuration.ComponentPropertiesDialog
All Implemented Interfaces:
org.eclipse.jface.window.IShellProvider, LinkViewerSelectionListener, ConfigurationContextSelectorListener

public class ComponentPropertiesDialog
extends MultiPageFramedDialog
implements ConfigurationContextSelectorListener

This is the generic dialog that is used to display and edit the properties of a module instance included in a call flow. This dialog is typically accessed from the "Properties" option of the module's context menu or by double-clicking the module itself. The properties are organized into pages. The list of available pages is displayed in the navigation bar located on the left side of the dialog. The selected page is presented in the main content area of the dialog. The dialog offers two buttons: Ok and Cancel. The Cancel button is used to discard any changes made to the module properties while this dialog was open. The Ok button will cause all changes to be saved for the module. The propigation of changes to other interested parties is left up to the pages or the opener of this dialog.

Version:
1.0
Author:
Trip

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.jface.window.Window
org.eclipse.jface.window.Window.IExceptionHandler
 
Field Summary
 
Fields inherited from class org.eclipse.jface.window.Window
CANCEL, OK
 
Constructor Summary
ComponentPropertiesDialog(BrandManager brandManager, org.eclipse.swt.widgets.Shell parentShell)
          Creates a new ComponentPropertiesDialog instance.
 
Method Summary
 void addPage(ContentPage page)
           
protected  void cancelPressed()
           
 void contextSelectionChanged(Brand brand, java.lang.String interactionType, java.lang.String language)
           
protected  void createDialogContents(org.eclipse.swt.widgets.Composite parent)
           
protected  void handleShellCloseEvent()
           
protected  boolean processOk()
           
 
Methods inherited from class org.eclipse.vtp.desktop.core.dialogs.MultiPageFramedDialog
createButtonBar, createSideBar, getPages, okPressed, selectionChanged, setCanFinish
 
Methods inherited from class org.eclipse.vtp.desktop.core.dialogs.FramedDialog
create, createContents, getFrameColor, getParentShell, getSideBarColor, getSideBarControl, getSideBarSize, getTitle, setFrameColor, setSideBarColor, setSideBarControl, setSideBarSize, setTitle
 
Methods inherited from class org.eclipse.jface.window.Window
canHandleShellCloseEvent, close, configureShell, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getInitialLocation, getInitialSize, getLayout, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, initializeBounds, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentPropertiesDialog

public ComponentPropertiesDialog(BrandManager brandManager,
                                 org.eclipse.swt.widgets.Shell parentShell)
Creates a new ComponentPropertiesDialog instance.

Parameters:
parentShell - The SWT shell object which will serve as the parent window of this dialog
page - The current canvas of the selected voice application editor
Method Detail

processOk

protected boolean processOk()
Overrides:
processOk in class MultiPageFramedDialog

cancelPressed

protected void cancelPressed()
Overrides:
cancelPressed in class MultiPageFramedDialog

handleShellCloseEvent

protected void handleShellCloseEvent()
Overrides:
handleShellCloseEvent in class org.eclipse.jface.window.Window

createDialogContents

protected void createDialogContents(org.eclipse.swt.widgets.Composite parent)
Overrides:
createDialogContents in class MultiPageFramedDialog

contextSelectionChanged

public void contextSelectionChanged(Brand brand,
                                    java.lang.String interactionType,
                                    java.lang.String language)
Specified by:
contextSelectionChanged in interface ConfigurationContextSelectorListener

addPage

public void addPage(ContentPage page)
Overrides:
addPage in class MultiPageFramedDialog